package net.lummox.model;

import java.util.List;

import javax.ejb.Remote;

@Remote
public interface AiDao {
	/**
	 * Returns a list of words in dictionary that match expression and are
	 * longer than specified length. If expression is empty the returning list
	 * contains all words in dictionary. Words in list are in upper case. Sample
	 * of SQL-statement: "SELECT UPPER(NAME) FROM DICTIONARY WHERE UPPER(NAME)
	 * LIKE ? AND LENGTH(NAME) > ?"
	 * 
	 * @param expression
	 *            Expression which is used in like statement. It doesn't contain
	 *            "%" chars.
	 * @return A list of words
	 */
	public List<String> getWordsLike(String expression);
}
